﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using DailyDiet.Models;

namespace DailyDiet.Services
{
    /// <summary>
    /// 健康资讯服务接口
    /// </summary>
    public interface IHealthInfoService
    {

        /// <summary>
        /// 访问API获取健康资讯信息
        /// </summary>
        /// <returns></returns>
        Task<HealthInfo> GetHealthInfoAsync();

        /// <summary>
        /// 打开显示详情网址。
        /// </summary>
        /// <param name="url">要打开的网址。</param>
        Task OpenAsync(string url);
    }
}
